From d4c466d595e6d9d2996607364e16fff14d4bca58 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 6 Apr 2005 00:00:03 +0000 Subject: [PATCH] * (bug 1788) Fix link duplication when edit/upload comment includes newlines --- includes/Linker.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Linker.php b/includes/Linker.php index ce1bab5ef6..f830819c8e 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -688,6 +688,7 @@ class Linker { wfProfileIn( $fname ); global $wgContLang; + $comment = str_replace( "\n", " ", $comment ); $comment = htmlspecialchars( $comment ); # The pattern for autogen comments is / * foo * /, which makes for -- 2.20.1